package com.mm.dao;

import com.mm.model.Wallet;
import org.apache.ibatis.annotations.Mapper;

@Mapper
public interface WalletMapper {
	/**
	 * 保存钱包
	 *
	 * @param wallet Wallet
	 */
	void insertWallet(Wallet wallet);

	/**
	 * 根据钱包ID更新钱包
	 *
	 * @param wallet Wallet
	 */
	void updateWalletById(Wallet wallet);

	/**
	 * 获取钱包
	 *
	 * @param walletId 钱包ID
	 * @return Wallet
	 */
	Wallet getOneWalletById(Long walletId);

	/**
	 * 通过钱包ID删除钱包
	 *
	 * @param walletId 钱包ID
	 */
	void deleteWalletById(Long walletId);
}